package com.lenovo.dh.voteclient.bean;

import java.util.ArrayList;
import java.util.List;

import com.lenovo.nova.util.parse.Bean;
import com.lenovo.nova.util.parse.anntation.json.ListSaveType;

public class Topics extends Bean {
	
	public List<Topic> mList = new ArrayList<Topic>();
	
	public Topic newEntity (){
		return new Topic();
	}
	
	
	public static class Topic extends Bean{
		int id;
		String name;
		@ListSaveType(vlaue=Option.class)
		public List<Option> options = new ArrayList<Option>();
		public Topic() {
		}
		
		public int getId() {
			return id;
		}
		public void setId(int id) {
			this.id = id;
		}
		public String getTitle() {
			return name;
		}
		public Topic setTitle(String title) {
			this.name = title;
			return this;
		}

		@Override
		public String toString() {
			return "Topic [id=" + id + ", name=" + name + ", options="
					+ options + "]";
		}
		
		
		
	}
}